<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>addOrEndit</title>
</head>
<body>
    <h1>新增或编辑</h1>
    <table>
        <tr hidden>
            <td>id</td>
            <td><input type="text" name="id"></td>
        </tr>
        <tr>
            <td>name</td>
            <td><input type="text" name="name"></td>
        </tr>
        <tr>
            <td>price</td>
            <td><input type="text" name="price"></td>
        </tr>
        <tr>
            <td>stock</td>
            <td><input type="text" name="stock"></td>
        </tr>
        <tr>
            <td><input type="button" value="保存" onclick="save()"></td>
            <td><input type="button" value="取消" onclick="cancel()"></td>
        </tr>
    </table>
</body>
<script src="./jquery-3.6.0.min.js"></script>
<script src="./addorendit.js"></script>
</html>